//
//  Headerdetails.m
//  ExploreWorld
//
//  Created by dlios on 15-7-15.
//  Copyright (c) 2015年 chenlin. All rights reserved.
//

#import "Headerdetails.h"

@interface Headerdetails ()
@property(nonatomic, retain)UIButton *button;
@property(nonatomic, retain)UILabel *textlabel;
@property(nonatomic, retain)UILabel *headerLabel;
@property(nonatomic, retain)UIImageView *img;

@end

@implementation Headerdetails

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor blackColor];
    
    CGRect recth = CGRectMake(0, 0, self.view.frame.size.width, 40);
    self.headerLabel = [[UILabel alloc]initWithFrame:recth];
    self.headerLabel.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.headerLabel];
    [self.headerLabel release];
    
    self.button = [UIButton buttonWithType:UIButtonTypeCustom];
    self.button.backgroundColor = [UIColor redColor];
    CGRect rectb = CGRectMake(0, 40, 50, 30);
    self.button.frame = rectb;
    [self.view addSubview:self.button];
    [self.button addTarget:self action:@selector(goback) forControlEvents:UIControlEventTouchUpInside];
    
    
    

}
- (void)goback{
    [self dismissViewControllerAnimated:NO completion:^{
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    }


@end
